<?php
class getPackage extends ActionHandler 
{
	function handleRequest($jsonData)
	{
		$data = $jsonData['params'];
		$ownerId = $data['ownerId'];
		$sql = "select objectIndex, objectNum from ".$this->tables['object_profile']." where ownerId = ".$ownerId;
		$result = $this->db->query($sql);
		$return = array();
		$objects = array();
		while($arr = $this->db->fetchArray($result))
		{
			$objects[$arr['objectIndex']] = $arr;
		}
		$return['objects'] = $objects;
		$return['firstLoad'] = $data['firstLoad'];
		return $return;
	}
}
?>
